
#ifndef SpriteH
#define SpriteH


#include "SDLBase.h"
#include "Constants.h"


/* A classe Sprite usara a classe SDLBase para carregar e exibir as imagens.
 */
class Sprite
{
public:
	SDL_Rect clipRect, aux, dst;
	SDL_Surface *surface;
	SDL_Surface *surfaceRotoZoom;
	float angle;
	float scaleX, scaleY;


	Sprite(string);
	virtual ~Sprite();

	SDL_Rect getClip();
	SDL_Surface* rotoZoom(float, float, float, bool);
	void load(string);
	void clip(int, int, int, int);
	void render(int, int);
	void restore();
	virtual void update(int) {}
	int getWidth();
	int getHeight();
};


#endif
